<?php
$strTableName="sanpham";
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];

$strOriginalTableName="sanpham";

$gstrOrderBy="";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy="order by ".$gstrOrderBy;

$g_orderindexes=array();
$gsqlHead="SELECT sanpham.masanpham,  sanpham.tensanpham,  sanpham.hinhanh,  sanpham.gia,  sanpham.madanhmuc,  sanpham.motangangon,  sanpham.motachitiet,  sanpham.giakhuyenmai,  danhmucsanpham.tendanhmuc";
$gsqlFrom="FROM sanpham  INNER JOIN danhmucsanpham ON danhmucsanpham.id = sanpham.madanhmuc";
$gsqlWhereExpr="";
$gsqlTail="";

include(getabspath("include/sanpham_settings.php"));

// alias for 'SQLQuery' object
$gQuery = &$queryData_sanpham;
$eventObj = &$tableEvents["sanpham"];

$reportCaseSensitiveGroupFields = false;

$gstrSQL = gSQLWhere("");


?>